<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Clinicname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-clinicname" data-rule="required" class="form-control" name="row[clinicname]" type="text" value="{$row.clinicname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">营业日:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-week" data-rule="required" class="form-control selectpicker" name="row[week][]" multiple data-live-search="true" title="请选择营业日">
                <option value="1" {:$row.week && in_array('1', explode(',', $row.week)) ? 'selected' : ''}>周一</option>
                <option value="2" {:$row.week && in_array('2', explode(',', $row.week)) ? 'selected' : ''}>周二</option>
                <option value="3" {:$row.week && in_array('3', explode(',', $row.week)) ? 'selected' : ''}>周三</option>
                <option value="4" {:$row.week && in_array('4', explode(',', $row.week)) ? 'selected' : ''}>周四</option>
                <option value="5" {:$row.week && in_array('5', explode(',', $row.week)) ? 'selected' : ''}>周五</option>
                <option value="6" {:$row.week && in_array('6', explode(',', $row.week)) ? 'selected' : ''}>周六</option>
                <option value="7" {:$row.week && in_array('7', explode(',', $row.week)) ? 'selected' : ''}>周日</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">预约时间:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-time" data-rule="required" class="form-control selectpicker" name="row[time][]" multiple data-live-search="true" title="请选择预约时间">
                <option value="10:00" {:$row.time && in_array('10:00', explode(',', $row.time)) ? 'selected' : ''}>10:00</option>
                <option value="10:45" {:$row.time && in_array('10:45', explode(',', $row.time)) ? 'selected' : ''}>10:45</option>
                <option value="11:30" {:$row.time && in_array('11:30', explode(',', $row.time)) ? 'selected' : ''}>11:30</option>
                <option value="13:30" {:$row.time && in_array('13:30', explode(',', $row.time)) ? 'selected' : ''}>13:30</option>
                <option value="14:15" {:$row.time && in_array('14:15', explode(',', $row.time)) ? 'selected' : ''}>14:15</option>
                <option value="15:00" {:$row.time && in_array('15:00', explode(',', $row.time)) ? 'selected' : ''}>15:00</option>
                <option value="15:45" {:$row.time && in_array('15:45', explode(',', $row.time)) ? 'selected' : ''}>15:45</option>
                <option value="16:30" {:$row.time && in_array('16:30', explode(',', $row.time)) ? 'selected' : ''}>16:30</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-address" data-rule="required" class="form-control " rows="5" name="row[address]" cols="50">{$row.address|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Opentime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-opentime" data-rule="required" class="form-control" name="row[opentime]" type="text" value="{$row.opentime|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
